#include <stdio.h>
#include "../../liboctopus/src/octopus.h"

int main()
{

  struct octopus_context octopus;
   
  octopus_init(&octopus);
  octopus_open(&octopus);
  octopus_io_init(&octopus, 19);
  octopus_io_init(&octopus, 17);
  octopus_io_set_pin_direction_out(&octopus,19);
  octopus_io_set_pin_direction_in(&octopus,17);

  while(1){
    octopus_io_set_pin(&octopus, 19, 0);
    octopus_io_set_pin(&octopus, 19, 1);
    octopus_io_get_pin(&octopus, 17);
  }
  
  return 0;


}

